home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 30 / Mac Magazin and MacEasy Magazine CD - Issue 30.iso / utilities / Mac OS X / Load_Monitor / src / MainController.h < prev    next >
Encoding:
Text File  |  2002-01-12  |  1.6 KB  |  51 lines

  1. /*
  2.  *    Load Monitor
  3.  *
  4.  *    Copyright © 2001 Alexandre Vial, some parts from Bernhard Baehr
  5.  *
  6.  *    MainController.h - Main Application Controller Class
  7.  *
  8.  *    This program is free software; you can redistribute it and/or modify
  9.  *    it under the terms of the GNU General Public License as published by
  10.  *    the Free Software Foundation; either version 2 of the License, or
  11.  *    (at your option) any later version.
  12.  *
  13.  *    This program is distributed in the hope that it will be useful,
  14.  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *    GNU General Public License for more details.
  17.  *
  18.  *    You should have received a copy of the GNU General Public License
  19.  *    along with this program; if not, write to the Free Software
  20.  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.  */
  22.  
  23.  
  24. #import <Cocoa/Cocoa.h>
  25. #import "LoadInfo.h"
  26. #import "Preferences.h"
  27. #import "TranslucentView.h"
  28. #import "TranslucentWindow.h"
  29.  
  30.  
  31. @interface MainController : NSObject
  32. {
  33. //    IBOutlet id        aboutBox;    // the About box
  34.     Preferences        *preferences;    // the preferences
  35.     MemInfo            *memInfo;    // memory usage data buffer
  36.     NSTimer            *timer;        // timer for icon refreshs
  37.     NSImage            *iconImage;    // the dock icon image
  38.     NSImage            *graphImage;    // image of the graph (w/o text) for updates
  39.     TranslucentView        *view;        // view for the graph window
  40.     TranslucentWindow    *window;    // window for the graph
  41.  
  42.         int            LOAD_MAX;       // the number of step to be displayed 
  43.         int            x_max;        // place of the max
  44. }
  45.  
  46. - (void)showPreferences:(id)sender;
  47. //- (void)showAboutBox:(id)sender;
  48. - (IBAction)showAboutBox:(id)sender;
  49.  
  50. @end
  51.